date=input('输入今天的日期:')
weather=input('记录天气:')
text=input('请编写日记:')
with open('./6666/my_diary.txt','w',encoding='utf-8') as f:
    f.write(f'{date} {weather}\n')
    f.write(f'{text.replace(',','\n\n')}')
